import request from '../utils/request'

function queryList(data){
  return request({
    url:'/front/blog/queryList',
    method:'get',
    params:data
  })
}

function clickBlog(data){
  return request({
    url:'/front/blog/clickBlog',
    method:'get',
    params:data
  })
}
function info(data){
  return request({
    url:'/front/blog/info/'+data,
    method:'get',
  })
}
function publish(data){
  return request({
    url:'/front/blog/publish',
    method:'post',
    data
  })
}
function collect(data){
  return request({
    url:'/front/blog/collect',
    method:'get',
    params:data
  })
}

export default {queryList,info,publish,clickBlog,collect}